use std::{io::Error, env};

use dotenv::dotenv;
use hello_mq::Server;

#[tokio::main]
async fn main() -> Result<(), Error> {
    init_env();
    
    Server::start().await?;
    Ok(())
}

fn init_env() {
    dotenv().ok();

    for (key, value) in env::vars() {
        println!("{}: {}", key, value);
    }
}
